package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PtfInterfaceServiceMapper;
import com.ruoyi.system.domain.PtfInterfaceService;
import com.ruoyi.system.service.IPtfInterfaceServiceService;

/**
 * 接口服务Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-20
 */
@Service
public class PtfInterfaceServiceServiceImpl implements IPtfInterfaceServiceService 
{
    @Autowired
    private PtfInterfaceServiceMapper ptfInterfaceServiceMapper;

    /**
     * 查询接口服务
     * 
     * @param serviceId 接口服务主键
     * @return 接口服务
     */
    @Override
    public PtfInterfaceService selectPtfInterfaceServiceByServiceId(Long serviceId)
    {
        return ptfInterfaceServiceMapper.selectPtfInterfaceServiceByServiceId(serviceId);
    }

    /**
     * 查询接口服务列表
     * 
     * @param ptfInterfaceService 接口服务
     * @return 接口服务
     */
    @Override
    public List<PtfInterfaceService> selectPtfInterfaceServiceList(PtfInterfaceService ptfInterfaceService)
    {
        return ptfInterfaceServiceMapper.selectPtfInterfaceServiceList(ptfInterfaceService);
    }

    /**
     * 新增接口服务
     * 
     * @param ptfInterfaceService 接口服务
     * @return 结果
     */
    @Override
    public int insertPtfInterfaceService(PtfInterfaceService ptfInterfaceService)
    {
        return ptfInterfaceServiceMapper.insertPtfInterfaceService(ptfInterfaceService);
    }

    /**
     * 修改接口服务
     * 
     * @param ptfInterfaceService 接口服务
     * @return 结果
     */
    @Override
    public int updatePtfInterfaceService(PtfInterfaceService ptfInterfaceService)
    {
        return ptfInterfaceServiceMapper.updatePtfInterfaceService(ptfInterfaceService);
    }

    /**
     * 批量删除接口服务
     * 
     * @param serviceIds 需要删除的接口服务主键
     * @return 结果
     */
    @Override
    public int deletePtfInterfaceServiceByServiceIds(Long[] serviceIds)
    {
        return ptfInterfaceServiceMapper.deletePtfInterfaceServiceByServiceIds(serviceIds);
    }

    /**
     * 删除接口服务信息
     * 
     * @param serviceId 接口服务主键
     * @return 结果
     */
    @Override
    public int deletePtfInterfaceServiceByServiceId(Long serviceId)
    {
        return ptfInterfaceServiceMapper.deletePtfInterfaceServiceByServiceId(serviceId);
    }
}
